//
//  Player_personButton.m
//  SoundPill
//
//  Created by 宋旭东 on 15/4/25.
//  Copyright (c) 2015年 宋旭东. All rights reserved.
//

#import "Player_personButton.h"

@implementation Player_personButton
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithRed:0.596f green:0.600f blue:0.604f alpha:1.00f];
        [self createSubviews];
    }
    return self;
}
- (void)createSubviews
{
//    self.personImg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.height, self.frame.size.height)];
//    _personImg.image = [UIImage imageNamed:@"Player_person"];
//    [self addSubview:_personImg];
    
    self.personName = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width-self.frame.size.height, self.frame.size.height)];
    _personName.font = [UIFont systemFontOfSize:14];
    _personName.textColor = [UIColor whiteColor];
    _personName.textAlignment = NSTextAlignmentCenter;
    [self addSubview:_personName];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
